package org.study.es.boot.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.study.es.boot.entity.BookEntity;

import java.util.List;

/**
 * 接口的描述
 *
 * @author Administrator
 * @date 2021-12-31
 */
public interface BookService {
    BookEntity findById(String id);

    BookEntity save(BookEntity blog);

    void delete(BookEntity blog);

    List<BookEntity> findAll();

    Page<BookEntity> findByAuthor(String author, PageRequest pageRequest);

    Page<BookEntity> findByTitle(String title, PageRequest pageRequest);
}
